package creator.builder;

public class ArmysDirector {

    private ArmysBuilder builder;

    public ArmysDirector(ArmysBuilder builder) {
        this.builder = builder;
    }

    // 武将在前
    public Armys qianfengArmys(){
        builder.buildWujiang();
        builder.buildSolider();
        builder.buildResources();
        return builder.getArmysResult();
    }

    /**
     * 武将在后
     * @return
     */
    public Armys houdunArmys(){
        builder.buildSolider();
        builder.buildWujiang();
        builder.buildResources();
        return builder.getArmysResult();
    }
}
